<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>position</title>
		<style>
			.box1
			{
				border:1px solid red;
				width:300px;
				height: 300px;
				background-color: greenyellow;
			}
			/*相对定位*/
			.box2
			{
				border:1px solid red;
				width:300px;
				height: 300px;
				background-color: red;
				position: relative;/*相对定位*/
				left:500px;
				top:10px;
			}
			.box3
			{
				border:1px solid red;
				width:300px;
				height: 300px;
				background-color: aliceblue;
			}
		</style>
	</head>
	<body>
		<div class="box1">box1</div>
		<div class="box2">box2</div>
		<div class="box3">box3</div>
	</body>
</html>
